import requests
from lxml import etree
import pymongo

mongo_conn = pymongo.MongoClient()
url = "http://www.httpbin.org/get"
headers = {
    "User-Agent": "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/91.0.4472.124 Safari/537.36"
}
response = requests.get(url, headers=headers)
result = response.content.decode()
print(result)
root = etree.HTML(result)
tag_list = root.xpath("")
for tag in tag_list:
    filed1 = tag.xpath(".//")
    filed2 = tag.xpath(".//")
    mongo_conn.temp.data.insert_one({})
